These are parameters, descriptions and resulting outputs to the 'ctime' function in Apache
You can place any number of the following symbols in an expression interspersed with formatting characters.
The output is acheived on your webpage using the following tag <!--#echo var="DATE_LOCAL" -->
Note that if the time zone on the server is changed, Apache may not see it until Apache is restarted.
<!--#config timefmt="%A-%B, %Y %T" --> = Thursday-March, 2023 12:44:22
Value | Meaning | |
default | Thursday, 23-Mar-2023 12:44:22 MDT | |
%a | Abbreviated weekday name | Thu |
%A | Full weekday name | Thursday |
%b | Abbreviated month name | Mar |
%B | Full month name | March |
%c | 'Locale' formatted date and time | Thu Mar 23 12:44:22 2023 |
%C | Default formatted date and time | (no longer supported) |
%d | Day of month | 23 (01 - 31) |
%D | Date as %m/%d/%y | 03/23/23 |
%e | Day of month | 23 (1 - 31) |
%H | Hour (00 - 23) | 12 |
%I | Hour (01 - 12) | 12 |
%j | Day of year | 082 (001 to 365) |
%m | Month of year | 03 (01 - 12) |
%M | Minute (00 to 59) | 44 |
%n | Insert new line | (no longer supported) |
%p | String containing AM or PM | PM |
%r | Time as %I:%M:%S | 12:44:22 PM |
%R | Time as %H:%M | 12:44 |
%S | Seconds (00 to 59) | 22 |
%t | Insert a TAB character | (no longer supported) |
%T | Time as %H:%M:%S | 12:44:22 |
%U | Week number within year | 12 (00 to 53) (Sunday = first day) |
%w | Day number | 4 (0 - 6) (Sunday = 0) |
%W | Week number within year | 12 (00 to 53) (Monday = first day) |
%x | Country specific date format | 03/23/23 |
%X | Country specific time format | 12:44:22 |
%y | Year within century | 23 (2 digits) |
%Y | Year as YYYY | 2023 (4 digits) |
%Z | Time zone name | MDT |